package com.sky.service.user;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * @param
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 减少菜品
     * @param shoppingCart
     */
    void updateNumber(ShoppingCart shoppingCart);

    /**
     * 清空购物车
     */
    void deleteAllCart();
}
